package link.cocoon.sms.util;

import java.security.SecureRandom;

/**
 * @author xce
 * @date 2020/3/19  17:02
 */
public class VerificationCodeGenerator {


  public static String generate() {
    SecureRandom random = new SecureRandom();
    int i = random.nextInt(899999) + 10_0000;
    return new StringBuilder(Integer.toString(i)).reverse().toString();
  }

}
